const express = require('express')
const router = express.Router()

// 挂载对应的路由
router.get('/get',(req,res)=>{
    const query = req.query
    res.send({
        state:0,
        msg:'GET请求成功!',
        data:query
    })
})

router.post('/post',(req,res)=>{
    const body = req.body
    res.send({
        state:0,
        msg:'POST请求成功！',
        data:body
    })
})




module.exports = router